import {
	request
} from "./index.js";

export const userRegister = (data) => {
	return request({
		url: "/prod-api/api/register",
		data,
		method: "post"
	})
}

export const userLogin = (data) => {
	return request({
		url: "/prod-api/api/login",
		data,
		method: "post"
	})
}

export const userInfo = () => {
	return request({
		url: "/prod-api/api/common/user/getInfo",
		header: {
			"Authorization": uni.getStorageSync("token")
		}
	})
}

export  const  commonUser= (data)=>{
	return  request({
		method:"put",
		data,
		url:"/prod-api/api/common/user",
		header:{
			"Authorization":uni.getStorageSync("token")
		}
	})
	
}
